package day3.StaticClass;

public class StaticOuter {
    private int outerNum = 10;
    private static int StaticNum = 20;
    static class Inner{
        private int interNum = 30;
        private static int StaticNum2 = 40;
        public static void staticFun(){
            System.out.println("静态内部类：StaticNum："+StaticNum);
            System.out.println("通过类名访问"+StaticOuter.StaticNum);
            //System.out.println(interNum);
        }
        void show(){
            System.out.println("静态内部类：StaticNum："+StaticNum);
            System.out.println("通过类名访问"+StaticOuter.StaticNum);
            System.out.println(interNum);
        }
    }
    public void disp(){
        Inner inner = new Inner();
        System.out.println(inner.interNum);
        System.out.println(inner.StaticNum2);
    }

}
